package com.neusoft.SPNursingHome.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.neusoft.SPNursingHome.po.*;
import com.neusoft.SPNursingHome.po.CareRecordWithAdminAndCareItem;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

public interface CareRecordService {
    // 查看客户护理记录列表
    public ResponseBean<List<CareRecord>> listCareRecord();
    // 添加客户护理记录
    public ResponseBean<Integer> addCareRecord(CareRecord careRecord);
    // 移除客户护理记录
    public ResponseBean<Integer> deleteCareRecord(Integer careRecord);
    // 根据客户姓名、项目编号、项目名称模糊查询护理记录
    public ResponseBean<List<CareRecord>> getCareRecordByConditions(String clientName, String careItemCode, String careItemName);
    // 管理员选中某个客户可以查看护理记录信息
    // 根据客户id查看客户护理记录列表
    public ResponseBean<List<CareRecordWithAdminAndCareItem>> getCareRecordByClientId(Integer clientId, String careItemName);
    public ResponseBean<IPage<CareRecordWithAdminAndCareItemAndClient>>
    getPageByAdminAndFilters(
            Integer adminId,
            String careItemName,
            String careContent,
            Long page,
            Long size
    );

    /** 根据护理记录 ID 查详情 */
    ResponseBean<CareRecordWithAdminAndCareItemAndClient> getByRecordId(Integer careRecordId);
}
